// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addCart POST /api/cart/add */
export async function addCartUsingPost(body: API.CartAddRequest, options?: { [key: string]: any }) {
  return request<API.BaseResponseLong_>('/api/cart/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteCart POST /api/cart/delete */
export async function deleteCartUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/cart/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listCartVOByPage POST /api/cart/list/page/vo */
export async function listCartVoByPageUsingPost(
  body: API.CartQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageCartVO_>('/api/cart/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listMyCartVOByPage POST /api/cart/my/list/page/vo */
export async function listMyCartVoByPageUsingPost(
  body: API.CartQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageCartVO_>('/api/cart/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
